// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_POSITION_CLIENT_H_
#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_POSITION_CLIENT_H_

#include "base/macros.h"
#include "ui/views/views_export.h"
#include "ui/wm/core/default_screen_position_client.h"

namespace views {

// Client that always offsets by the toplevel RootWindow of the passed
// in child NativeWidgetAura.
class VIEWS_EXPORT DesktopScreenPositionClient
    : public wm::DefaultScreenPositionClient {
public:
    explicit DesktopScreenPositionClient(aura::Window* root_window);
    ~DesktopScreenPositionClient() override;

    // aura::client::DefaultScreenPositionClient:
    void SetBounds(aura::Window* window,
        const gfx::Rect& bounds,
        const gfx::Display& display) override;

private:
    aura::Window* root_window_;

    DISALLOW_COPY_AND_ASSIGN(DesktopScreenPositionClient);
};

} // namespace views

#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_POSITION_CLIENT_H_
